package com.htzos.admin.log.service;
import com.htzos.admin.log.bean.LogReqBase;
import com.htzos.admin.log.dao.LogReqBaseMapper;
import com.htzos.common.tool.ExtQueryBean;
import java.util.List;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
@Service
@Transactional(rollbackFor = Exception.class)
public class LogReqBaseService {
    @Autowired
    LogReqBaseMapper logReqBaseMapper;
    @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
    public List<LogReqBase> logReqBaseList(LogReqBase logReqBase, ExtQueryBean extQuery){
       return logReqBaseMapper.logReqBaseList(logReqBase, extQuery);
    }

    @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
    public Integer logReqBaseTotal(LogReqBase logReqBase, ExtQueryBean extQuery){
       return logReqBaseMapper.logReqBaseTotal(logReqBase, extQuery);
    }

    @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
    public int logReqBaseUpdate(LogReqBase logReqBase){
       return logReqBaseMapper.logReqBaseUpdate(logReqBase);
    }

    @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
    public int logReqBaseInsert(LogReqBase logReqBase){
       return logReqBaseMapper.logReqBaseInsert(logReqBase);
    }

    @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
    public int logReqBaseDelete(LogReqBase logReqBase){
       return logReqBaseMapper.logReqBaseDelete(logReqBase);
    }

    @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
    public LogReqBase logReqBaseGet(String id){
       return logReqBaseMapper.logReqBaseGet(id);
    }
}